package com.china08.yxyapi.util;

import org.springframework.amqp.rabbit.core.RabbitTemplate;

import com.china08.yxyapi.config.SwsStatisticsConfig;

public class SwsStatisticsUtil {

    /**
     * 统计文章访问量
     * 
     * @param date
     */
    public static void lecturePvStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_ARTICLE_STATISTICS,
                date);
    }

    /**
     * 统计学校网站的资讯统计
     */
    public static void lectureZiXunStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_ZIXUN_STATISTICS,
                date);
    }

    /**
     * 统计学校网站的访问栏目
     * 
     * @param date
     */
    public static void lectureLanMuStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_LANMU_STATISTICS,
                date);
    }

    /**
     * 统计学校班级每天的数据
     * 
     * @param date
     */
    public static void lectureHomeschoolClassStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLCLASS_STATISTICS, date);
    }

    /**
     * 统计学校班级前七天互动量的数据
     */
    public static void lectureHomeschoolClassHuDongStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLCLASS_HUDONG_STATISTICS, date);
    }

    /**
     * 统计学校班级前七天接收率
     */
    public static void lectureHomeschoolClassReciveStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLCLASS_RECIVE_STATISTICS, date);
    }

    /**
     * 统计学校教师每天的数据
     * 
     * @param date
     */
    public static void lectureHomeSchoolTeaStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLTEACHER_STATISTICS, date);
    }

    /**
     * 统计学校教师前七天的互动的数据
     * 
     * @param date
     */
    public static void lectureHomeSchoolTeaHuDongStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLTEACHER_HUDONG_STATISTICS, date);
    }

    /**
     * 统计学校教师前七天的接收率
     * 
     * @param date
     */
    public static void lectureHomeSchoolTeaReciveStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLCLASS_RECIVE_STATISTICS, date);
    }

    /**
     * 统计学校前七天的互动的数据
     * 
     * @param date
     */
    public static void lectureHomeschoolHuDongStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLSCHOOL_HUDONG_STATISTICS, date);
    }

    /**
     * 统计学校接收率的数据
     * 
     * @param date
     */
    /*
     * public static void lectureHomeschoolReciveStatis(Integer date) {
     * SpringContextUtil.getBean(RabbitTemplate.class)
     * .convertAndSend(SwsStatisticsConfig.
     * YW_SWS_HOMESCHOOLSCHOOL_RECIVE_STATISTICS, date); }
     */

    /**
     * 统计学校家校通知数量和班级发布数量
     * 
     * @param date
     */
    public static void lectureHomeschoolStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLSCHOOL_STATISTICS, date);
    }

    /**
     * 补全学校下的栏目数据
     * 
     * @param formatDate4
     */
    public static void lectureLanMuMessageStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOLLANMU_STATISTICS, date);
    }

    /**
     * 补全学校(swspv)total表的数据
     * 
     * @param date
     */
    /*
     * public static void lectureHomeschoolSwspvTotalStatis(Integer date) {
     * SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(
     * SwsStatisticsConfig.YW_SWS_HOMESCHOOLSCHOOL_SWSPV_STATISTICS, date); }
     */
    /**
     * 教学统计每日统计
     * 
     * @param formatDate4
     */
    public static void teachingForDayStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_TEACHING_STATISTICS,
                date);
    }

    /**
     * 教学统计每日统计
     * 
     * @param formatDate4
     */
    public static void homeschoolForDayStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_HOMESCHOOL_STATISTICS,
                date);
    }

    /**
     * (学校)网站统计每日统计
     * 
     * @param formatDate4
     */
    public static void swsForDayStatis(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class).convertAndSend(SwsStatisticsConfig.YW_SWS_SWS_STATISTICS, date);
    }

    /**
     * 补全开通网站学校(total)
     * 
     * @param formatDate4
     */
    public static void kaitongwangzhanTotal(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_KAITONGWANGZHANTOTAL_STATISTICS, date);
    }

    /**
     * 补全开通网站学校(month)
     * 
     * @param formatDate4
     */
    public static void kaitongwangzhanMonth(Integer date) {
        SpringContextUtil.getBean(RabbitTemplate.class)
                .convertAndSend(SwsStatisticsConfig.YW_SWS_KAITONGWANGZHANMONTH_STATISTICS, date);
    }
}
